package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

/**
 * 城轨轴箱异常管理（接口）表 cgzx_exception_management_mes
 * 
 * @author ruoyi
 * @date 2019-02-22
 */
public class CgzxExceptionManagementMes extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** $column.columnComment */
	private String gid;
	/** 异常编码
0：物料异常
1：工装工具异常
2：人员异常
3：工艺异常
4：质量异常
 */
	private String code;
	/** 异常小类
编码为0时
0：物料缺失
1：物料多余
2：物料错误
编码为1时
0：工装工具缺失
编码为2时
0：工种缺失
1：数量不足
编码为3时
0：工艺异常
编码为4时
0：原材料异常
1：自制件异常
 */
	private Integer modelcode;
	/** 产品名称 */
	private String productName;
	/** 产品编号 */
	private String produUid;
	/** 工序名称 */
	private String opName;
	/** 工序编号 */
	private String opCode;
	/** 工位编号 */
	private String workstationCode;
	/** 配送单号 */
	private String reqCode;
	/** 物料编码
异常编码为0,1,4时才有值
 */
	private String matId;
	/** 物料数量
异常编码为0,1,4时才有值
 */
	private Integer matNum;
	/** 派工单号 */
	private String dispatchCode;
	/** 物料序列号
异常编码为4，异常小类为1时才有值
 */
	private String seriesCode;
	/** 备注 */
	private String remark;
	/** 物料地址
Code=1
modelcode=1,2
需要传入地址码
.当物料错误多余的时候需要传入地址
 */
	private String matAddress;
	/** 标志位 */
	private Integer flag;

	public void setGid(String gid) 
	{
		this.gid = gid;
	}

	public String getGid() 
	{
		return gid;
	}
	public void setCode(String code) 
	{
		this.code = code;
	}

	public String getCode() 
	{
		return code;
	}
	public void setModelcode(Integer modelcode) 
	{
		this.modelcode = modelcode;
	}

	public Integer getModelcode() 
	{
		return modelcode;
	}
	public void setProductName(String productName) 
	{
		this.productName = productName;
	}

	public String getProductName() 
	{
		return productName;
	}
	public void setProduUid(String produUid) 
	{
		this.produUid = produUid;
	}

	public String getProduUid() 
	{
		return produUid;
	}
	public void setOpName(String opName) 
	{
		this.opName = opName;
	}

	public String getOpName() 
	{
		return opName;
	}
	public void setOpCode(String opCode) 
	{
		this.opCode = opCode;
	}

	public String getOpCode() 
	{
		return opCode;
	}
	public void setWorkstationCode(String workstationCode) 
	{
		this.workstationCode = workstationCode;
	}

	public String getWorkstationCode() 
	{
		return workstationCode;
	}
	public void setReqCode(String reqCode) 
	{
		this.reqCode = reqCode;
	}

	public String getReqCode() 
	{
		return reqCode;
	}
	public void setMatId(String matId) 
	{
		this.matId = matId;
	}

	public String getMatId() 
	{
		return matId;
	}
	public void setMatNum(Integer matNum) 
	{
		this.matNum = matNum;
	}

	public Integer getMatNum() 
	{
		return matNum;
	}
	public void setDispatchCode(String dispatchCode) 
	{
		this.dispatchCode = dispatchCode;
	}

	public String getDispatchCode() 
	{
		return dispatchCode;
	}
	public void setSeriesCode(String seriesCode) 
	{
		this.seriesCode = seriesCode;
	}

	public String getSeriesCode() 
	{
		return seriesCode;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}
	public void setMatAddress(String matAddress) 
	{
		this.matAddress = matAddress;
	}

	public String getMatAddress() 
	{
		return matAddress;
	}
	public void setFlag(Integer flag) 
	{
		this.flag = flag;
	}

	public Integer getFlag() 
	{
		return flag;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("gid", getGid())
            .append("code", getCode())
            .append("modelcode", getModelcode())
            .append("productName", getProductName())
            .append("produUid", getProduUid())
            .append("opName", getOpName())
            .append("opCode", getOpCode())
            .append("workstationCode", getWorkstationCode())
            .append("reqCode", getReqCode())
            .append("matId", getMatId())
            .append("matNum", getMatNum())
            .append("dispatchCode", getDispatchCode())
            .append("seriesCode", getSeriesCode())
            .append("remark", getRemark())
            .append("matAddress", getMatAddress())
            .append("flag", getFlag())
            .toString();
    }
}
